<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>组合的动画 - jQuery EasyUI 演示</title>
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
	<h2 title="Combo Animation">组合的动画</h2>
	<p title="Change the animation type when open & close the drop-down panel.">　　下拉面板打开或关闭时，变更动画类型。</p>
	<div style="margin:10px 0">
		<span title="Animation Type:">动画类型：</span>
		<select onchange="changeAnimation(this.value)">
			<option value="slide">slide 滑动</option>
			<option value="fade">fade 淡入淡出</option>
			<option value="show">show 直显</option>
		</select>
	</div>
	<div class="easyui-panel" style="width:100%;max-width:400px;padding:20px 20px 10px 20px;">
		<div style="margin-bottom:10px">
			<input id="cc" label="<h title='Animation:'>动画类型：</h>" labelPosition="left" labelWidth="75" labelAlign="right" style="width:100%;">
		</div>
	</div>
	<script type="text/javascript">
		$(function(){
			$('#cc').combo();
			changeAnimation('slide');
		});
		function changeAnimation(atype){
			$('#cc').combo('panel').panel({
				openAnimation:atype,
				closeAnimation:(atype=='show'?'hide':atype)
			});
		}
	</script>
</body>
</html>